package com.heima.wemedia.feign;

import com.heima.common.dtos.ResponseResult;
import com.heima.model.admin.pojos.AdUser;
import com.heima.model.wemeida.dtos.WmSensitivPageReqeDto;
import com.heima.model.wemeida.pojos.WmChannel;
import com.heima.model.wemeida.pojos.WmSensitive;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("leadnews-wemedia")
public interface WemediaFeign {

    /**
     * 查询所有频道
     */
    @GetMapping("/api/v1/channel/channels")
    public ResponseResult<List<WmChannel>> channels();

    /**
     * 查询敏感词
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/sensitive/list")
    public ResponseResult<List<WmSensitive>> findList(@RequestBody WmSensitivPageReqeDto dto);
}
